package com.dlc.felear.xiaoensale.entity;

import java.util.List;

public class BaseCantenParamer {

    /**
     * code : 200
     * data : {"canteenId":"9bd4a0de0bb44c4baa83baa65d0d0b08","data":{"takeWeight":10,"buyWeight":15,"delayJsTime":1000,"alarmTime":6000}}
     * message : 操作成功
     */

    private int code;
    private List<Data> data;
    private String message;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public List<Data> getData() {
        return data;
    }

    public void setData(List<Data> data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static class Data {
        /**
         * canteenId : 9bd4a0de0bb44c4baa83baa65d0d0b08
         * data : {"takeWeight":10,"buyWeight":15,"delayJsTime":1000,"alarmTime":6000}
         */

        private String canteenId;
        private ParamerInfo data;

        public String getCanteenId() {
            return canteenId;
        }

        public void setCanteenId(String canteenId) {
            this.canteenId = canteenId;
        }

        public ParamerInfo getData() {
            return data;
        }

        public void setData(ParamerInfo data) {
            this.data = data;
        }

        public static class ParamerInfo {
            /**
             * takeWeight : 10
             * buyWeight : 15
             * delayJsTime : 1000
             * alarmTime : 6000
             */

            private int takeWeight;
            private int buyWeight;
            private int delayJsTime;
            private int alarmTime;
            private int tresholdJs;

            public int getTresholdJs() {
                return tresholdJs;
            }

            public void setTresholdJs(int tresholdJs) {
                this.tresholdJs = tresholdJs;
            }

            public int getTakeWeight() {
                return takeWeight;
            }

            public void setTakeWeight(int takeWeight) {
                this.takeWeight = takeWeight;
            }

            public int getBuyWeight() {
                return buyWeight;
            }

            public void setBuyWeight(int buyWeight) {
                this.buyWeight = buyWeight;
            }

            public int getDelayJsTime() {
                return delayJsTime;
            }

            public void setDelayJsTime(int delayJsTime) {
                this.delayJsTime = delayJsTime;
            }

            public int getAlarmTime() {
                return alarmTime;
            }

            public void setAlarmTime(int alarmTime) {
                this.alarmTime = alarmTime;
            }
        }
    }
}
